<?php
	#-------------------------------------------------------------#
	# This file is part of the Kumomado - Virtual Window Platform #
	# for PHP. (c) 2009 Tsai, Min Che <tirme0812@gmail.com>       #
	# Please visit http://www.kumomado.org/ for more information. #
	#                                                             #
	# This software is licensed under the GNU License v3. Please  #
	# view the LICENSE file for the full text of this license.    #
    #-------------------------------------------------------------#

	/**
	 * @package libraries/application/model/
	 * @author Tsai, Min Che
	 * @version 1.0
	 */
	class KumomadoApplicationModel extends KumomadoAbstractModel {
		public function __construct() {
			
		}
		public function getDataObject($object_name) {
			$kdo_name = $object_name.'DataObject';
			$dataobject_file = KUMOMADO_APPLICATION_PATH.'dataobject'.DIRECTORY_SEPARATOR.$object_name.'DataObject.class.php';
			if (file_exists($dataobject_file)) {
				include_once $dataobject_file;
				if (class_exists($kdo_name)) {
					return new $kdo_name;
				}
			}
		}
	}
?>